import request from '@/utils/request'
// 学习排名  --- 1
export function getStudyRanking() {
    return request({
        url: "/GetPBStudyCountRanking",
        method: 'get'
    })
}
// 学习进度统计数据 --- 1
export function getStudyCountProgress(data) {
    return request({
        url: "/GetPBStudyCountProgress",
        method: 'get',
        params: data
    })
}
// 课程完成统计数据 --- 1
export function getStudyFinish(data) {
    return request({
        url: "/GetPBStudyCountFinish",
        method: 'get',
        params: data
    })
}
// 获取本周学习时长统计 --- 1
export function getStudyUserTimeInfo(data) {
    return request({
        url: "/GetPBStudyUserTimeInfo",
        method: 'get',
        params: data
    })
}
// 获取最新课程信息(不分页)  --- 1
export function getStudyInfo() {
    return request({
        url: "/GetPBStudyInfo",
        method: 'get'
    })
}
// 获取课程信息列表(分页)--- 1
export function getStudyCourseList(data) {
    return request({
        url: "/GetPBStudyCourseInfoList",
        method: 'get',
        params: data
    })
}

// 添加课程信息
export function createStudyCourse(data) {
    return request({
        url: "/CreatePBStudyCourseInfo",
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}



// 获取课程详情
export function getStudyCourseDetail(data) {
    return request({
        url: "/GetPBStudyCourseDetails",
        method: 'get',
        params: data
    })
}

// 添加学员学习进度
export function createStudyUserSummary(data) {
    return request({
        url: "/CreatePBStudyUserSummary",
        method: 'get',
        params: data
    })
}










